//
//  Fraction.h
//  02 - ClassAndObject
//
//  Created by 韩旭 on 16/7/5.
//  Copyright © 2016年 HX. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface Fraction : NSObject
@property (nonatomic, assign) NSInteger denominator;
@property (nonatomic, assign) NSInteger numerator;
- (instancetype)initWithDeno:(NSInteger)deno Member:(NSInteger)member;
+ (instancetype)fractionWithDeno:(NSInteger)deno Member:(NSInteger)member;
//加
- (Fraction *)addWithFraction:(Fraction *)fraction;
//减
- (Fraction *)minWithFraction:(Fraction *)fraction;
//乘
- (Fraction *)subWithFraction:(Fraction *)fraction;
//除
- (Fraction *)remWithFraction:(Fraction *)fraction;
//比较大小
- (void)compareWithFraction:(Fraction *)fraction;
-(NSString *)description;
@end
